﻿using Shop.RemoteModel.Activity;
using Shop.RemoteModel.Activity.Model;
using Shop.Service.Interface;
using WeDonekRpc.Client.Interface;

namespace Shop.Service.RpcEvent
{
    internal class ActivityDetailedEvent : IRpcApiService
    {
        private readonly IActivityDetailedSerivce _Service;

        public ActivityDetailedEvent (IActivityDetailedSerivce service)
        {
            this._Service = service;
        }
        public ActivityDetailed GetActivityDetailed (GetActivityDetailed obj)
        {
            return this._Service.Get(obj.ActivityId);
        }
    }
}
